#ifndef TIMINGSWITCH_H
#define TIMINGSWITCH_H

#include <QThread>
#include <QTime>
#include <QDate>
#include <string>
#include <QFile>

class TimingSwitch : public QThread
{
	Q_OBJECT;
public:
	static TimingSwitch* createTimingSwitch();
	void onRemoveFile(bool flag);
protected:
	void run();

private:
	TimingSwitch();
	char DateToWeek(QDate date);
	QFile bootTimingFile;
	QFile shutdownTimingFile;
};

#endif // TIMINGSWITCH_H
